package com.immediatus.engine.primitive;

import com.immediatus.graphics.util.OpenGLWrapper;
import com.immediatus.graphics.vertex.RectangleVertexBuffer;

import javax.microedition.khronos.opengles.GL10;

public class Rectangle extends BaseRectangle{

    public Rectangle(final float x_, final float y_, final float w_, final float h_){
        super(x_, y_, w_, h_);
    }

    public Rectangle(final float x_, final float y_, final float w_, final float h_, final RectangleVertexBuffer vertexBuffer_){
        super(x_, y_, w_, h_, vertexBuffer_);
    }

    @Override
    protected void onInitDraw(final GL10 gl_){
        super.onInitDraw(gl_);
        OpenGLWrapper.disableTextures(gl_);
        OpenGLWrapper.disableTexCoordArray(gl_);
    }
}
